package com.dms.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author dms
 * @since 2023-02-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Orderlist对象", description="")
public class Orderlist implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "餐馆账号")
    private String no;

    @ApiModelProperty(value = "用户id")
    private Integer userid;

    @ApiModelProperty(value = "菜的id")
    private Integer menulistid;

    @ApiModelProperty(value = "菜的数量")
    private Integer number;

    @ApiModelProperty(value = "支付金额")
    private Float price;

    @ApiModelProperty(value = "用户口味")
    private String taste;

    @ApiModelProperty(value = "0是外卖,1是到店用餐")
    private Integer eatway;

    @ApiModelProperty(value = "用户评论")
    private String talk;
    @ApiModelProperty(value = "0是未支付,1是取消支付,2是已支付")
    private Integer state;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}
